import request from "../request/request"

export const queryByList = (maintain) => {
    return request({
        url: `/MaintainController/ListByLike`,
        method: 'post',
        data:maintain
    })
}

export const insert = (saveOrUpdate) => {
    return request({
        url: `/MaintainController/insertMaintain`,
        method: 'post',
        data:saveOrUpdate
    })
}

export const update = (saveOrUpdate) => {
    return request({
        url: `/MaintainController/updateMaintain`,
        method: 'put',
        data:saveOrUpdate
    })
}

export const remove = (id) => {
    return request({
        url: `/MaintainController/removeById`,
        method: 'delete',
        params:{id:id}
    })
}